<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Sl9</title>
	</head>
	<body>
		
		<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
		<script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
		<script>
			import Vue from 'vue'
			import Router from 'vue-router'
			
			Vue.use(Router)
			//ES提出的import方法
			const HelloWorld = ()=>import("@/components/HelloWorld")
			
			export default new Router({
				routers:[
					{
						path:'/',
						name:'HelloWorld',
						component:HelloWorld
					}
				]
			})
		</script>
	</body>
</html>
